package com.example.chatroom.configure;

import com.example.chatroom.websocket.Handler.WebSocketChildChannelHandler;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.nio.NioEventLoopGroup;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WebSocketClassConfig {
    @Bean
    public NioEventLoopGroup getNioEventLoopGroup(){
        return new NioEventLoopGroup();
    }
    @Bean
    public ServerBootstrap getServerBootstrap(){
        return new ServerBootstrap();
    }

}
